package com.rainbow.support.influxdb.properties;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * influxdb配置项
 * @author 付为地
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = InfluxdbProperties.EXTRA_INFLUXDB_PREFIX)
public class InfluxdbProperties {

    /**
     * 配置项前缀
     */
    public static final String EXTRA_INFLUXDB_PREFIX = "rainbow.extra.influx";

    /**
     * 配置地址
     */
    private String url;

    /**
     * 登录用户
     */
    private String username;

    /**
     * 账户密码
     */
    private String password;

    /**
     * 数据库配置
     */
    private String database;

    /**
     * 时间配置
     */
    private Integer actions=1000;

    /**
     * 过期时间
     */
    private Integer duration=2000;


}
